<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>插值表达式</title>
    <script>
        function hehe(){
            var length = window.prompt("请输入长度");

            alert("你输入的内容为："+length);
        }
    </script>
</head>
<body>
    <div id="app">
        {{3+3}}<br/>
        {{3>3}}<br/>
        {{3==3}}<br/>
        {{3===3}}<br/>
        {{3!=3}}<br/>
        {{name}}<br/>
        {{sayHello("黑马69")}}<br/>
        {{Math.random()}}<br/>
        <hr/>
        姓名:{{mz}}<br/>

        姓名: <span v-text="mz"></span><br/>
        姓名:<span v-html="mz"></span><br/>

    </div>

    <script src="./node_modules/vue/dist/vue.js"></script>
    <script>
        var app = new Vue({
            el:"#app",

            data:{
                name:"刘德华",
                mz:"<h3>我就是一个信息的表达</h3>"
            },
            methods:{
                sayHello(info){
                    return "hello"+info;
                }
            }

        });
    </script>

</body>
</html>